// 这里是定义菜单的地方，详情请查看 https://electronjs.org/docs/api/menu
// import { dialog } from "electron";
// import { type, arch, release } from "os";
// import packageInfo from "../../../package.json";

const menu = [
  {
    label: "设置",
    submenu: [
      {
        label: "快速重启",
        accelerator: "F5",
        role: "reload",
      },
      {
        label: "退出",
        accelerator: "CmdOrCtrl+F4",
        role: "close",
      },
    ],
  },
];
// function info() {
//   dialog.showMessageBox({
//     title: "关于",
//     type: "info",
//     message: "electron-Vue框架",
//     detail: `版本信息：${packageInfo.version}\n引擎版本：${
//       process.versions.v8
//     }\n当前系统：${type()} ${arch()} ${release()}`,
//     noLink: true,
//     buttons: ["确定"],
//   });
// }

export default menu;
